import request from '../request'

export function listPreBoundWard(params) {
  return request({
    url: `/patient-bed-middle-prebundled/listPreBoundWard`,
    method: 'post',
    data: params
  })
}

export function getPreBoundBedDetail(params) {
  return request({
    url: `/patient-bed-middle-prebundled/getPreBoundBedDetail`,
    method: 'post',
    data: params
  })
}

export function addPrebundled(params) {
  return request({
    url: `/patient-bed-middle-prebundled/addPrebundled?bedId=${params.bedId}&patientId=${params.patientId}&name=${params.name}`,
    method: 'post'
  })
}

export function updatePrebundled(params) {
  return request({
    url: `/patient-bed-middle-prebundled/updatePrebundled?bedId=${params.bedId}&patientId=${params.patientId}&name=${params.name}`,
    method: 'post'
  })
}

export function getUnbind(params) {
  return request({
    url: `/patient-bed-middle-prebundled/unbind?bedId=${params.bedId}&name=${params.name}`,
    method: 'post'
  })
}
